import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	hasServePermission: apix + '/serve/hasServePermission',
	applications: apix + '/room/applications/apply',
}

/**
 * @param {Object} serveId 服务id 0约车 1家政 2报修 3代办
 */
export function hasServePermission(serveId) {
	return request.get(api.hasServePermission, {
		serveId
	}, {
		isPrompt: false
	})
}

/**
 *住房申请判断
 */
export function applications() {
	return request.get(api.applications, {}, {
		isPrompt: false
	})
}